<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/reset.css">
    <style>
        ul {
            display: flex;
            width: 300px;
            height: 100px;
            background-color: #eee;
            align-items: center;
        }

        ul li:nth-child(3) {
            /* 调整顺序   值默认是0   越小越靠前 */
            order: -1;
            /* 改变某个子元素在交叉轴的对齐方式 */
            align-self: flex-start;

            /* 类似于宽度 */
            /* flex-basis: 40px; */
            /* 宽度会失效 */
            /* width: 30px; */

            /* flex:flex-shrink flex-grow flex-basis */
            /* flex-grow:1  简写成flex:0 1 auto */
            flex: 1;
        }
    </style>
</head>

<body>

    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>

</body>

</html>